import request from "@/utils/request";

export const approvallabel = {
    contextPath: '/equip', //按照实际应用修改成微服务的名�?//
    getdata: (data) => { //分页查询
        return request({
            url: approvallabel.contextPath + '/t-en-wz-equip-bq/pageBqList',
            method: 'POST',
            data: data
        })
    },
    queryDictData: (code) => { //获取物资
        return request({
            url: approvallabel.contextPath + '/t-en-wz-sblx/getList?pid='+code,
            method: 'POST',
            // data: code
        })
    },
    queryLeaf: (code) => { //获取审核状态
        return request({
            url: approvallabel.contextPath + '/t-en-interface-code/queryLeaf?code=' + code,
            method: 'POST',
            // data: code
        })
    },
    equipUpdate: (data) => { //审核是否通过
        return request({
            url: approvallabel.contextPath + '/t-en-wz-equip-bq/update',
            method: 'POST',
            data: data
        })
    },
    exportXls: (data)=>{ //导出//
        return request({
            url: approvallabel.contextPath+'/t-en-wz-equip-bq/export/excel',
            method: 'POST',
            data: data,
            responseType: 'blob'
        })
    },

}
